package com.wangijun.yuan.admin.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wangijun.yuan.admin.system.model.em.EnableStatus;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
    * 角色表
    */
@Data
@TableName(value = "sys_role")
public class SysRole implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 角色名
     */
    @TableField(value = "`name`")
    private String name;


    /**
     * 状态,true启用，false禁用
     */
    @TableField(value = "`status`")
    private EnableStatus status;

    @Serial
    private static final long serialVersionUID = 1L;
}